package data.enums;

/**
 * It's important to see that this class use String intead of the enum Continent. It happens because
 * the bidirectional reference causes some problems once the enum Continent has this enum as reference.
 * 
 * The name of csv archive must be equal to the name of the Index enum. For example, if we have a Index
 * "SP_500", the csv archive name must be "SP_500.csv"
 * 
 * To facilitate the use of other partes of the application, choice an String continent that satisfies:
 * 	
 * String continent = "X"
 * continent.equals(Continent.X.toString()); //this sentence must be true
 *  
 */
public enum Index {
	
	BSE_Sensex ("ASIA"),
	CAC_40 ("EUROPE"),
	DAX ("EUROPE"),
	FTSE_100 ("EUROPE"),
	Hang_Seng ("ASIA"),
	Merval ("AMERICA"),
	Nasdaq_Composite ("AMERICA"),
	Nikkei_255 ("ASIA"),
	Nyse_Composite ("AMERICA"),
	Dow_Jones ("AMERICA"),
	Stockholm_General ("EUROPE"),
	Ibovespa ("AMERICA"),
	Shanghai_Composite ("ASIA");
	
	private final String continent;
	
	Index (String continent) {
		this.continent = continent;
	}

	public String getContinent() {
		return continent;
	}

}
